package world.ztomorrow.novel.dto.resp;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@ApiModel(description = "书籍章节信息 响应DTO")
public class BookChapterRespDto {

    /**
     * 章节ID
     */
    @ApiModelProperty( "章节ID")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long id;

    /**
     * 小说ID
     */
    @ApiModelProperty( "小说ID")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long bookId;

    /**
     * 章节号
     */
    @ApiModelProperty( "章节号")
    private Integer chapterNum;

    /**
     * 章节名
     */
    @ApiModelProperty( "章节名")
    private String chapterName;

    /**
     * 章节字数
     */
    @ApiModelProperty( "章节字数")
    private Integer chapterWordCount;

    /**
     * 章节更新时间
     */
    @ApiModelProperty( "章节更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    private LocalDateTime chapterUpdateTime;

    /**
     * 是否收费;1-收费 0-免费
     */
    @ApiModelProperty( "是否收费;1-收费 0-免费")
    private Integer isVip;
}
